package org.mspring.mlog.entity;

import java.util.Date;
import org.mspring.nbee.db.annotation.AutoIncrement;
import org.mspring.nbee.db.annotation.Col;
import org.mspring.nbee.db.annotation.Id;
import org.mspring.nbee.db.annotation.Mappable;
import org.mspring.nbee.db.entity.BaseEntity;
import org.mspring.nbee.db.orm.EntityField;

/**
 *
 * @author Gao Youbo
 * @since 2016-06-05 10:10:14
 */
@Mappable
public class DuoshuoSyncLogEntity extends BaseEntity {

    @Id
    @AutoIncrement
    @Col(length = 19)
    private Long id;
    @Col(nullable = false, length = 19)
    private long logId;
    @Col(nullable = false, length = 19)
    private long userId;
    @Col(nullable = false, length = 32)
    private String action;
    @Col(nullable = false, length = 19)
    private long date;
    @Col(nullable = false, length = 65535)
    private String meta;
    @Col(nullable = false, length = 1)
    private boolean success;
    @Col(nullable = false, length = 19)
    private Date createTime;

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getLogId() {
        return this.logId;
    }

    public void setLogId(long logId) {
        this.logId = logId;
    }

    public long getUserId() {
        return this.userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getAction() {
        return this.action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public long getDate() {
        return this.date;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public String getMeta() {
        return this.meta;
    }

    public void setMeta(String meta) {
        this.meta = meta;
    }

    public boolean getSuccess() {
        return this.success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public static class Fields {
        public static final EntityField id = new EntityField("id", "id", Long.class, 19, false);
        public static final EntityField logId = new EntityField("logId", "log_id", long.class, 19, false);
        public static final EntityField userId = new EntityField("userId", "user_id", long.class, 19, false);
        public static final EntityField action = new EntityField("action", "action", String.class, 32, false);
        public static final EntityField date = new EntityField("date", "date", long.class, 19, false);
        public static final EntityField meta = new EntityField("meta", "meta", String.class, 65535, false);
        public static final EntityField success = new EntityField("success", "success", boolean.class, 1, false);
        public static final EntityField createTime = new EntityField("createTime", "create_time", Date.class, 19, false);
    }
}
